#/bin/bash

echo "check require"
pacman -Syy bash wget curl aria2 openssl openssh networkmanager systemd  vim nano 
#设置主机名称
echo "set hostname"
read hostnames
echo $hostnames >> /etc/hostname
#设置时区/语言
echo "set language and timezone"
ln -sf /usr/share/zoneinfo/asia/shanghai /etc/localtime
hwclock --systohc
echo zh_CN.UTF-8 UTF-8 >> /etc/locale.gen
echo en_US.UTF-8 UTF-8  >> /etc/locale.gen
touch /etc/locale.conf 
echo LANG=zh_CN.UTF-8 >> /etc/locale.conf
#系统服务检测
systemctl enable NetworkManager.service
#设置root账户密码
passwd
